var o = wx.cloud.database({
    env: "emojimaker-release-7xvun"
});

Page({
    data: {
        goodList: []
    },
    onLoad: function(t) {
        wx.showLoading({
            title: "获取数据中"
        });
        var n = this;
        o.collection("good").orderBy("createdate", "desc").get({
            success: function(o) {
                wx.hideLoading({
                    success: function(o) {}
                }), n.setData({
                    goodList: o.data
                });
            }
        });
    },
    previewImg: function(o) {
        wx.previewImage({
            urls: [ o.target.dataset.url ]
        });
    },
    copystr: function(o) {
        wx.setClipboardData({
            data: o.currentTarget.dataset.cpstr,
            success: function(o) {
                wx.showToast({
                    title: "复制成功，到淘宝领券吧",
                    icon: "none"
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});